<?php
// +----------------------------------------------------------------------
// | Name: keAdmin
// | Author King east To 1207877378@qq.com
// +----------------------------------------------------------------------

namespace app\admin\model;


use think\Model;

class AdminRule extends Model
{

    public function parent()
    {
        return $this->hasOne('AdminRule','id','parent_id')->field('id,title')->bind(['ParentName'=>'title']);
    }

}